package com.vector.server.mapper;

import com.vector.server.pojo.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Acerola
 * @since 2021-08-21
 */
@Repository
@Mapper
public interface RoleMapper extends BaseMapper<Role> {
    //根据用户id查询对应角色列表
    List<Role> getRoles(Integer adminId);
}
